package JAVATest;

/**
 * ClassName:Text_008
 * Package:JAVATest
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/11-12:57
 * @Version:v1.0
 */
public class Text_008 {
    public static void main(String[] args) {
        int []arr={1,2,3,4,5};
        int t=0;
        t=arr[0];
        arr[0]=arr[4];
        arr[4]=t;
        for (int i = 0; i <arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
